#include "my_common.h"

#pragma warning(disable:4786)
#pragma warning(disable:4482) //the warning about the enum

void console_out_welcome(void);

void console_out_prompt(void);

std::string console_get_command(void);

void console_out_help(void);

void console_out_bye(void);

bool console_command_valid(const std::string &);

void console_out_error_command(void);

bool console_command_arguments_valid(const std::string &);

void console_out_error_arguments(void);

enum CMD_KIND
{
	CREAT,
	IMPORT,
	SELECT,
	UPDATA,
	DELETE,
	INDEX,
	ERROR
};

CMD_KIND parse_command(const std::string&, std::string&);


struct sql_col_property
{
	std::string name;
	std::string datatype;
	std::string datalength;
	bool whether_null;
};

struct sql_table_property
{
	std::string name;
	std::vector<sql_col_property> columns;
};

struct sql_db
{
	std::vector<sql_table_property> tables;
};

